using System;
using NHibernate;

namespace Myotragus.Data.Criteria
{
	public interface IReadQueryBuilder : IQueryBuilder
	{
		object FindById(Type entityImplementation, object id);

		bool Exists(Type entityImplementation, object id);

		ICriteria CreateMatchingCriteria(Type persistentType, object pattern);

		ICriteria CreateLikeCriteria(Type persistentType, object pattern);
	}
}